<template>
    <fieldset>
        <legend>子组件   </legend>
            <h1>子组件</h1>
     <h2>{{msg}}</h2>
    </fieldset>
</template>




<script>
export default{
    inject:[msg2],
    data () {
        return {
            msg:"v50 KFC crazy thursday"
        }
    },
    methods: {
        change(){
            this.msg='black firday'
        }
    }
}

</script>